package com.demo;

import com.alibaba.cloud.nacos.NacosDiscoveryProperties;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * Nacos客户端。Nacos的服务端是软件，所以服务端不需要像erueka那样自己搭建。
 *
 * @author yexi
 * @see NacosDiscoveryProperties
 */
@SpringBootApplication
@Slf4j
public class NacosClientApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(NacosClientApplication.class, args);
        log.info("服务已启动成功!");
    }
}
